﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace FwProject.ShoppingMall.EventAdvertising
{
    /// <summary>
    /// 广告位置
    /// </summary>
    [Table("shop_Ad_location")]
    public class ShopAdLocation: FullAuditedEntity<Guid>
    {
        public const int MaxAdLocationTitleLength = 200;
        /// <summary>
        /// 广告标题
        /// </summary>
        [Required]
        [StringLength(MaxAdLocationTitleLength)]
        public string AdLocationTitle { get; set; }

        /// <summary>
        /// 广告高度
        /// </summary>
        public int AdHeight { get; set; }

        /// <summary>
        /// 广告宽度
        /// </summary>
        public int AdWidht { get; set; }

        public AdTypeLocation AdTypeLocation { get; set; } = AdTypeLocation.首页banner;
    }

    public enum AdTypeLocation {

        [Display(Name = "首页banner")]
        首页banner=0,
        [Display(Name = "首页横幅广告")]
        首页横幅广告 =1,
        [Display(Name = "商品列表广告")]
        商品列表广告 =2,
        [Display(Name = "个人中心广告")]
        个人中心广告 =3,
        [Display(Name = "秒杀产品列表广告")]
        秒杀产品列表广告 =4,
        [Display(Name = "推荐产品列表广告")]
        推荐产品列表广告 =5,
        [Display(Name = "特价产品列表广告")]
        特价产品列表广告 =6,
        [Display(Name = "首页秒杀长图")]
        秒杀长图 = 7,
       [Display(Name = "首页秒杀")]
        首页秒杀 = 8

    }
}
